package com.xja.git.service.impl;

import com.xja.git.entity.Users;
import com.xja.git.mapper.UsersMapper;
import com.xja.git.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 作者：罗帅
 * 当前类所在包：com.xja.git.service.impl
 * 创建时间：2022/8/16下午 10:09 星期二
 * 此类简介：
 */
@Service
public class UsersServiceImpl implements UserService {
    @Autowired
    private UsersMapper usersMapper;

    public UsersMapper getUsersMapper() {
        return usersMapper;
    }

    public void setUsersMapper(UsersMapper usersMapper) {
        this.usersMapper = usersMapper;
    }

    /**
     * 添加的方法
     * @param userid
     * @return
     */
    public Users findUsers(Integer userid){
        return usersMapper.ServletById(1);
    }
}
